Skip to content

Update typing.Union and types.UnionType definitions for 3.14 - #13740

Draft
Viicos wants to merge 5 commits into
python:mainfrom
Viicos:union-314
Draft

Viicos wants to merge 5 commits into
python:mainfrom
Viicos:union-314

Conversation

@Viicos

@Viicos Viicos commented Mar 29, 2025 •

Copy link
Copy Markdown
Contributor

As per python/cpython#105511.


2026-06-04 (@srittau): Marking as deferred. Depends on python/mypy#21588 being fixed.

@srittau

srittau commented Mar 29, 2025

Copy link
Copy Markdown
Collaborator

Thanks for contributing! Unfortunately, as outlined in our CONTRIBUTING document we only accept pull requests to the standard library for future Python versions after the first beta version has been released. This is in part to prevent churn in the stubs, and in part because the testing infrastructure for the future version is not yet in place. Please feel free to open a new PR when the first beta version has been released. Alternatively, if this PR is still relevant, you can leave a comment here to reopen it.

@srittau srittau closed this Mar 29, 2025
@github-actions

This comment has been minimized.

@Avasam

Avasam commented May 15, 2025

Copy link
Copy Markdown
Collaborator

@Viicos Beta 1 has been released! I don't think contributors can re-open their PRs. You can let us know if you'd like us to re-open this or you can create a new PR!

@Viicos

Viicos commented May 15, 2025

Copy link
Copy Markdown
Contributor Author

Yes happy to have this one reopened.

@srittau srittau reopened this May 15, 2025
@JelleZijlstra

Copy link
Copy Markdown
Member

I tried this too but ran into some trouble with how type checkers are special-casing these symbols; might need some changes inside type checkers too.

@github-actions

This comment has been minimized.

@LordGiacomoS

Copy link
Copy Markdown

Did some slight tweaks to mypy's source code to try and get it working with these changes. It seems my changes work when running the stubtest in both python 3.14.5 and 3.15.0b1 on linux with a slightly updated version of this fork, but the code still needs work before I'd even consider it remotely worthwhile to open a PR here or in mypy.

  • The tweaked version of mypy fails if it is working with an old version of typeshed, meaning that either typeshed needs to be updated first, the tweaked version of mypy needs to have some guardrails to gracefully handle older versions of typeshed, or mypy's internal typeshed needs to be modified in the same way.
  • The version checks used to make sure that mypy isn't handling pre 3.14 UnionTypes with 3.14+ behavior need to be moved to wherever version checks that can't be handled in .pyi files go.

@srittau

srittau commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

This doesn't merge cleanly to main, at the moment.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@srittau

srittau commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

I've files python/mypy#21588. I'm marking this PR as deferred an draft for now, as I see no way forward until this fixed in mypy.

@srittau
srittau marked this pull request as draft June 4, 2026 10:58
@srittau srittau added the status: deferred Issue or PR deferred until some precondition is fixed label Jun 4, 2026
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

anyio (https://github.com/agronholm/anyio)
+ ...typeshed_to_test/stdlib/typing.pyi:1005: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 2.4.0
+ ...typeshed_to_test/stdlib/typing.pyi:1005: note: use --pdb to drop into pdb
- src/anyio/_core/_eventloop.py:21: error: Name "sniffio" already defined on line 19  [no-redef]
- src/anyio/itertools.py:147: error: No overload variant of "add" matches argument types "T", "T"  [call-overload]
- src/anyio/itertools.py:147: note: Possible overload variants:
- src/anyio/itertools.py:147: note:     def [_T_contra, _T_co] add(SupportsAdd[_T_contra, _T_co], _T_contra, /) -> _T_co
- src/anyio/itertools.py:147: note:     def [_T_contra, _T_co] add(_T_contra, SupportsRAdd[_T_contra, _T_co], /) -> _T_co
- src/anyio/_backends/_trio.py:244: error: Unused "type: ignore" comment  [unused-ignore]
- src/anyio/_backends/_trio.py:422: error: Class cannot subclass "Instrument" (has type "Any")  [misc]
- src/anyio/_backends/_trio.py:463: error: Unused "type: ignore" comment  [unused-ignore]
+ Traceback (most recent call last):
+   File "mypy/checkexpr.py", line 6253, in accept
+   File "mypy/nodes.py", line 3449, in accept
+   File "mypy/checkexpr.py", line 5003, in visit_type_alias_expr
+     return self.alias_type_in_runtime_context(alias.node, ctx=alias, alias_definition=True)
+   File "mypy/checkexpr.py", line 5059, in alias_type_in_runtime_context
+     return self.chk.named_generic_type("types.UnionType", item.items)
+   File "mypy/checker.py", line 7987, in named_generic_type
+   File "mypy/checker.py", line 7996, in lookup_typeinfo
+     assert isinstance(node, TypeInfo), node
+ AssertionError: TypeAlias:727(
+   UnionType
+   Never
+   False)
+ 

core (https://github.com/home-assistant/core)
+ ...typeshed_to_test/stdlib/typing.pyi:1005: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 2.4.0
+ ...typeshed_to_test/stdlib/typing.pyi:1005: note: use --pdb to drop into pdb
+ error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 2.4.0
+ note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "<frozen runpy>", line 203, in _run_module_as_main
+   File "mypy/checkexpr.py", line 6253, in accept
+   File "mypy/nodes.py", line 3449, in accept
+   File "mypy/checkexpr.py", line 5003, in visit_type_alias_expr
+     return self.alias_type_in_runtime_context(alias.node, ctx=alias, alias_definition=True)
+   File "mypy/checkexpr.py", line 5059, in alias_type_in_runtime_context
+     return self.chk.named_generic_type("types.UnionType", item.items)
+   File "mypy/checker.py", line 7987, in named_generic_type
+   File "mypy/checker.py", line 7996, in lookup_typeinfo
+     assert isinstance(node, TypeInfo), node
+ AssertionError: TypeAlias:727(
+   UnionType
+   Never
+   False)
+ 
+ Traceback (most recent call last):
+   File "mypy/build.py", line 1378, in receive_worker_message
+     return receive(self.workers[idx].conn)
+   File "mypy/ipc.py", line 496, in receive
+ OSError: No data received
+ 
+ During handling of the above exception, another exception occurred:
+ 
+ Traceback (most recent call last):
+   File "/__main__.py", line 16, in console_entry
+     main()
+     ~~~~^^
+   File "mypy/main.py", line 167, in main
+   File "mypy/main.py", line 257, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "mypy/build.py", line 425, in build
+   File "mypy/build.py", line 540, in build_inner
+     graph = dispatch(sources, manager, stdout, connect_threads)
+   File "mypy/build.py", line 4199, in dispatch
+     process_graph(graph, manager)
+   File "mypy/build.py", line 4667, in process_graph
+     done, still_working, results = manager.wait_for_done(graph)
+   File "mypy/build.py", line 1474, in wait_for_done
+     return self.wait_for_done_workers(graph)
+   File "mypy/build.py", line 1493, in wait_for_done_workers
+     buf = self.receive_worker_message(idx)
+   File "mypy/build.py", line 1386, in receive_worker_message
+     raise OSError(
+ OSError: Worker 0 disconnected before sending data (exit code 2)
+ 
- homeassistant/components/sonarr/helpers.py:283: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/sonarr/helpers.py:331: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/miele/const.py:106: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:106: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:154: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:154: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:182: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:182: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:214: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:214: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:257: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:257: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:271: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:271: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:285: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:285: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:295: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:295: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:305: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:305: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:322: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:322: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:342: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:342: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:355: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:355: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:366: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:366: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:385: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:385: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:425: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:425: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:434: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:434: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:447: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:447: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:505: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:505: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:532: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:532: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:592: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:592: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:1174: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:1174: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:1184: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:1184: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:1194: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:1194: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/const.py:1312: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/const.py:1312: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/mqtt/async_client.py:45: error: Class cannot subclass "MQTTClient" (has type "Any")  [misc]
- homeassistant/components/mqtt/async_client.py:65: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/mqtt/async_client.py:66: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/mqtt/async_client.py:67: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/mqtt/async_client.py:68: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/mqtt/async_client.py:69: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/mqtt/async_client.py:70: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/mqtt/async_client.py:71: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/marketplace/utils/version.py:22: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/util/ulid.py:42: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/telegram_bot/helpers.py:15: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/owntracks/helper.py:6: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/helpers/template/context.py:44: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/energieleser/const.py:25: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/util/dt.py:115: error: Returning Any from function declared to return "ZoneInfo | None"  [no-any-return]
- homeassistant/util/httpx2_ssl.py:48: error: Unused "type: ignore[misc, assignment]" comment  [unused-ignore]
- homeassistant/components/airos/config_flow.py:103: error: Variable "homeassistant.components.airos.config_flow.AirOSDeviceDetect" is not valid as a type  [valid-type]
- homeassistant/components/airos/config_flow.py:103: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- homeassistant/components/alexa_devices/coordinator.py:260: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/alexa_devices/coordinator.py:465: error: Returning Any from function declared to return "Mapping[str, Mapping[str, Any]]"  [no-any-return]
- homeassistant/components/apple_tv/config_flow.py:146: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/asuswrt/bridge.py:239: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/asuswrt/bridge.py:332: error: Returning Any from function declared to return "tuple[float | None, float | None]"  [no-any-return]
- homeassistant/components/asuswrt/bridge.py:337: error: Returning Any from function declared to return "tuple[float, float]"  [no-any-return]
- homeassistant/components/asuswrt/bridge.py:342: error: Returning Any from function declared to return "list[float]"  [no-any-return]
- homeassistant/components/asuswrt/bridge.py:347: error: Returning Any from function declared to return "dict[str, float]"  [no-any-return]
- homeassistant/components/asuswrt/bridge.py:389: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/cloud/tts.py:332: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/cloud/tts.py:490: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/data_grand_lyon/config_flow.py:305: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/data_grand_lyon/config_flow.py:403: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/engie_be/__init__.py:66: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/components/evohome/coordinator.py:78: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/evohome/storage.py:34: error: Class cannot subclass "AbstractTokenManager" (has type "Any")  [misc]
- homeassistant/components/evohome/storage.py:34: error: Class cannot subclass "AbstractSessionManager" (has type "Any")  [misc]
- homeassistant/components/evohome/storage.py:59: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/evohome/storage.py:71: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/evohome/storage.py:90: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/evohome/storage.py:94: error: TypedDict key must be a string literal; expected one of ("session_id", "session_id_expires")  [literal-required]
- homeassistant/components/evohome/storage.py:100: error: Argument 1 to "fromisoformat" of "date" has incompatible type "object"; expected "str"  [arg-type]
- homeassistant/components/intent/timers.py:323: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/lifx/coordinator.py:126: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/lifx/coordinator.py:148: error: Returning Any from function declared to return "int | None"  [no-any-return]
- homeassistant/components/lifx/coordinator.py:159: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/matrix/__init__.py:131: error: Returning Any from function declared to return "tuple[int, int]"  [no-any-return]
- homeassistant/components/midea/config_flow.py:104: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/components/midea/config_flow.py:504: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/mijn_farmad_apotheek/services.py:119: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/mijn_farmad_apotheek/services.py:234: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/modbus/connection.py:188: error: overload def [_P, _T_co] (func: def (*_P.args, **_P.kwargs) -> typing.AsyncIterator[_T_co]) -> def (*_P.args, **_P.kwargs) -> contextlib._AsyncGeneratorContextManager[_T_co, None] of function contextlib.asynccontextmanager is deprecated: Annotating the return type as `-> AsyncIterator[Foo]` with `@asynccontextmanager` is deprecated. Use `-> AsyncGenerator[Foo]` instead.  [deprecated]
- homeassistant/components/opower/coordinator.py:569: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/opower/coordinator.py:598: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/opower/coordinator.py:624: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/powerwall/__init__.py:365: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/powerwall/__init__.py:373: error: Returning Any from function declared to return "int | None"  [no-any-return]
- homeassistant/components/powerwall/__init__.py:381: error: Returning Any from function declared to return "int | None"  [no-any-return]
- homeassistant/components/prometheus/__init__.py:565: error: Returning Any from function declared to return "_MetricBaseT"  [no-any-return]
- homeassistant/components/samsungtv/bridge.py:446: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/samsungtv/bridge.py:457: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/sftp_storage/client.py:93: error: Returning Any from function declared to return "bytes"  [no-any-return]
- homeassistant/components/simplisafe/__init__.py:128: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/victron_gx/config_flow.py:106: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/xiaomi_ble/config_flow.py:48: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/zonneplan/coordinator.py:222: error: Returning Any from function declared to return "tuple[Any | None, Any | None]"  [no-any-return]
- homeassistant/components/zonneplan/coordinator.py:235: error: Returning Any from function declared to return "tuple[Any | None, Any | None]"  [no-any-return]
- homeassistant/components/devolo_home_network/coordinator.py:154: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/devolo_home_network/coordinator.py:210: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/devolo_home_network/coordinator.py:303: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/engie_be/sensor.py:208: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/google_drive/api.py:75: error: Class cannot subclass "AbstractAuth" (has type "Any")  [misc]
- homeassistant/components/google_drive/api.py:122: error: Class cannot subclass "AbstractAuth" (has type "Any")  [misc]
- homeassistant/components/greeneye_monitor/sensor.py:183: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/greeneye_monitor/sensor.py:227: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/greeneye_monitor/sensor.py:275: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/greeneye_monitor/sensor.py:295: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/heos/coordinator.py:81: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/heos/coordinator.py:288: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/heos/coordinator.py:295: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/heos/coordinator.py:304: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/home_connect/coordinator.py:339: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/homekit/__init__.py:815: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/jvc_projector/coordinator.py:216: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/jvc_projector/coordinator.py:238: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/knx/dpt.py:58: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/knx/dpt.py:84: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/lunatone/coordinator.py:243: error: Returning Any from function declared to return "dict[int, Any]"  [no-any-return]
- homeassistant/components/media_extractor/services.py:109: error: Argument 1 to "YoutubeDL" has incompatible type "dict[str, object]"; expected "_YoutubeDLOptions | None"  [arg-type]
- homeassistant/components/media_extractor/services.py:119: error: Argument 1 to "list" has incompatible type "Iterable[_InfoDict] | PagedList"; expected "Iterable[_InfoDict]"  [arg-type]
- homeassistant/components/media_extractor/services.py:138: error: TypedDict "_InfoDict" has no key "extractor"  [typeddict-item]
- homeassistant/components/media_extractor/services.py:139: error: Argument 1 to "get_best_stream_youtube" has incompatible type "list[dict[str, Any]] | None"; expected "list[dict[str, Any]]"  [arg-type]
- homeassistant/components/media_extractor/services.py:140: error: Argument 1 to "get_best_stream" has incompatible type "list[dict[str, Any]] | None"; expected "list[dict[str, Any]]"  [arg-type]
- homeassistant/components/media_extractor/services.py:202: error: Argument 1 to "YoutubeDL" has incompatible type "dict[str, Any]"; expected "_YoutubeDLOptions | None"  [arg-type]
- homeassistant/components/motionmount/config_flow.py:268: error: Returning Any from function declared to return "bool | int"  [no-any-return]
- homeassistant/components/motionmount/config_flow.py:274: error: Returning Any from function declared to return "bool | int"  [no-any-return]
- homeassistant/components/motionmount/config_flow.py:276: error: Returning Any from function declared to return "bool | int"  [no-any-return]
- homeassistant/components/peblar/services.py:141: error: overload def [_P, _T_co] (func: def (*_P.args, **_P.kwargs) -> typing.AsyncIterator[_T_co]) -> def (*_P.args, **_P.kwargs) -> contextlib._AsyncGeneratorContextManager[_T_co, None] of function contextlib.asynccontextmanager is deprecated: Annotating the return type as `-> AsyncIterator[Foo]` with `@asynccontextmanager` is deprecated. Use `-> AsyncGenerator[Foo]` instead.  [deprecated]
- homeassistant/components/solarlog/coordinator.py:120: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/solarlog/coordinator.py:172: error: Returning Any from function declared to return "dict[int, Any]"  [no-any-return]
- homeassistant/components/thethingsnetwork_lorawan/config_flow.py:49: error: overload def [_P, _T_co] (func: def (*_P.args, **_P.kwargs) -> typing.AsyncIterator[_T_co]) -> def (*_P.args, **_P.kwargs) -> contextlib._AsyncGeneratorContextManager[_T_co, None] of function contextlib.asynccontextmanager is deprecated: Annotating the return type as `-> AsyncIterator[Foo]` with `@asynccontextmanager` is deprecated. Use `-> AsyncGenerator[Foo]` instead.  [deprecated]
- homeassistant/components/tibber/sensor.py:873: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/transmission/coordinator.py:258: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/components/uvc/camera.py:206: error: Returning Any from function declared to return "bytes | None"  [no-any-return]
- homeassistant/components/vistapool/coordinator.py:58: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/xbox/coordinator.py:317: error: Returning Any from function declared to return "datetime | None"  [no-any-return]
- homeassistant/components/xbox/coordinator.py:319: error: Returning Any from function declared to return "datetime | None"  [no-any-return]
- homeassistant/auth/__init__.py:636: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/auth/jwt_wrapper.py:35: error: Class cannot subclass "PyJWS" (has type "Any")  [misc]
- homeassistant/auth/jwt_wrapper.py:45: error: Returning Any from function declared to return "tuple[bytes, bytes, dict[Any, Any], bytes]"  [no-any-return]
- homeassistant/auth/jwt_wrapper.py:60: error: Class cannot subclass "PyJWT" (has type "Any")  [misc]
- homeassistant/auth/jwt_wrapper.py:108: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/assist_pipeline/pipeline.py:370: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/automation/config.py:107: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/backup/util.py:444: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/blueprint/models.py:135: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/bluetooth/api.py:75: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/bluetooth/api.py:91: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/bluetooth/api.py:99: error: Returning Any from function declared to return "Iterable[Any]"  [no-any-return]
- homeassistant/components/bluetooth/api.py:123: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/bluetooth/api.py:131: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/bluetooth/api.py:139: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/bluetooth/api.py:218: error: Returning Any from function declared to return "Callable[[], None]"  [no-any-return]
- homeassistant/components/bluetooth/api.py:232: error: Returning Any from function declared to return "Callable[[], None]"  [no-any-return]
- homeassistant/components/bluetooth/api.py:300: error: Returning Any from function declared to return "Callable[[Any], None]"  [no-any-return]
- homeassistant/components/bluetooth/api.py:308: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/bluetooth/api.py:316: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/bluetooth/manager.py:66: error: Class cannot subclass "BluetoothManager" (has type "Any")  [misc]
- homeassistant/components/bluetooth/manager.py:97: error: Trying to assign name "_debug" that is not in "__slots__" of type "homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager"  [misc]
- homeassistant/components/bluetooth/manager.py:188: error: Trying to assign name "_all_history" that is not in "__slots__" of type "homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager"  [misc]
- homeassistant/components/bluetooth/manager.py:188: error: Trying to assign name "_connectable_history" that is not in "__slots__" of type "homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager"  [misc]
- homeassistant/components/bluetooth/update_coordinator.py:73: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/bluetooth/update_coordinator.py:84: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/cloud/account_link.py:148: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/cloud/backup.py:208: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/cloud/client.py:55: error: Class cannot subclass "Interface" (has type "Any")  [misc]
- homeassistant/components/cloud/google_config.py:376: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/cloud/google_config.py:429: error: Returning Any from function declared to return "HTTPStatus | int"  [no-any-return]
- homeassistant/components/cloud/http_api.py:101: error: Class cannot subclass "CloudError" (has type "Any")  [misc]
- homeassistant/components/frontend/__init__.py:343: error: Returning Any from function declared to return "Path"  [no-any-return]
- homeassistant/components/frontend/__init__.py:577: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/http/config.py:63: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/http/cors.py:40: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/http/cors.py:70: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/http/cors.py:76: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/light/services.py:34: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/matter/ble_proxy.py:42: error: Class cannot subclass "BleScanSource" (has type "Any")  [misc]
- homeassistant/components/matter/ble_proxy.py:92: error: Class cannot subclass "BleDeviceResolver" (has type "Any")  [misc]
- homeassistant/components/matter/entity.py:440: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/matter/update.py:135: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/matter/update.py:143: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/recorder/db_schema.py:381: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/recorder/db_schema.py:604: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/recorder/migration.py:2575: error: Returning Any from function declared to return "bytes | None"  [no-any-return]
- homeassistant/components/recorder/migration.py:2582: error: Returning Any from function declared to return "bytes"  [no-any-return]
- homeassistant/components/recorder/table_managers/__init__.py:34: error: Returning Any from function declared to return "int | None"  [no-any-return]
- homeassistant/components/script/config.py:120: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/stream/recorder.py:151: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/stream/recorder.py:152: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/tts/__init__.py:1638: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/tts/__init__.py:1639: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/tts/__init__.py:1640: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/update/entity.py:40: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/usb/serial_proxy_stub.py:15: error: Class cannot subclass "BaseSerial" (has type "Any")  [misc]
- homeassistant/components/usb/serial_proxy_stub.py:79: error: Class cannot subclass "BaseSerialTransport" (has type "Any")  [misc]
- homeassistant/components/usb/serial_proxy_stub.py:86: error: Unpack item in ** parameter must be a TypedDict  [misc]
- homeassistant/components/usb/serial_proxy_stub.py:94: error: Cannot determine type of "_closing"  [has-type]
- homeassistant/components/websocket_api/decorators.py:149: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/config.py:590: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/data_entry_flow.py:64: error: Class cannot subclass "Required" (has type "Any")  [misc]
- homeassistant/data_entry_flow.py:83: error: Class cannot subclass "Optional" (has type "Any")  [misc]
- homeassistant/data_entry_flow.py:130: error: Class cannot subclass "Invalid" (has type "Any")  [misc]
- homeassistant/helpers/aiohttp_client.py:165: error: Class cannot subclass "AsyncDualMDNSResolver" (has type "Any")  [misc]
- homeassistant/helpers/config_entry_oauth2_flow.py:826: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/helpers/config_entry_oauth2_flow.py:838: error: Returning Any from function declared to return "dict[str, Any] | None"  [no-any-return]
- homeassistant/helpers/config_validation.py:673: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/helpers/config_validation.py:909: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/helpers/config_validation.py:996: error: Returning Any from function declared to return "dict[Any, Any]"  [no-any-return]
- homeassistant/helpers/network.py:378: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/helpers/script.py:1201: error: Returning Any from function declared to return "timedelta"  [no-any-return]
- homeassistant/helpers/service.py:573: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/helpers/template/__init__.py:735: error: Returning Any from function declared to return "type[Any]"  [no-any-return]
- homeassistant/helpers/template/__init__.py:758: error: Class cannot subclass "Undefined" (has type "Any")  [misc]
- homeassistant/helpers/template/__init__.py:776: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/helpers/template/__init__.py:788: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/helpers/template/__init__.py:819: error: Class cannot subclass "BaseLoader" (has type "Any")  [misc]
- homeassistant/helpers/template/__init__.py:848: error: Class cannot subclass "ImmutableSandboxedEnvironment" (has type "Any")  [misc]
- homeassistant/helpers/template/__init__.py:964: error: Unused "type: ignore[call-overload]" comment  [unused-ignore]
- homeassistant/helpers/template/__init__.py:975: error: Returning Any from function declared to return "CodeType | str"  [no-any-return]
- homeassistant/helpers/template/extensions/base.py:60: error: Class cannot subclass "Extension" (has type "Any")  [misc]
- homeassistant/helpers/template/extensions/functional.py:241: error: Untyped decorator makes function "_random_every_time" untyped  [untyped-decorator]
- homeassistant/helpers/template/extensions/math.py:300: error: Untyped decorator makes function "wrapper" untyped  [untyped-decorator]
- homeassistant/helpers/template/extensions/type_cast.py:80: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/helpers/template/states.py:77: error: Returning Any from function declared to return "TemplateState"  [no-any-return]
- homeassistant/helpers/template/states.py:86: error: Returning Any from function declared to return "TemplateState"  [no-any-return]
- homeassistant/util/yaml/loader.py:63: error: Returning Any from function declared to return "dict[Any, Any]"  [no-any-return]
- homeassistant/components/airthings_ble/config_flow.py:53: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/alexa_devices/config_flow.py:83: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/analytics_insights/coordinator.py:140: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/analytics_insights/coordinator.py:149: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/bosch_alarm/entity.py:39: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/bring/coordinator.py:44: error: Class cannot subclass "DataClassORJSONMixin" (has type "Any")  [misc]
- homeassistant/components/bring/coordinator.py:52: error: Class cannot subclass "DataClassORJSONMixin" (has type "Any")  [misc]
- homeassistant/components/bthome/config_flow.py:33: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/chirpstack/config_flow.py:38: error: overload def [_P, _T_co] (func: def (*_P.args, **_P.kwargs) -> typing.AsyncIterator[_T_co]) -> def (*_P.args, **_P.kwargs) -> contextlib._AsyncGeneratorContextManager[_T_co, None] of function contextlib.asynccontextmanager is deprecated: Annotating the return type as `-> AsyncIterator[Foo]` with `@asynccontextmanager` is deprecated. Use `-> AsyncGenerator[Foo]` instead.  [deprecated]
- homeassistant/components/cloud/ai_task.py:116: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/cloud/stt.py:83: error: Returning Any from function declared to return "list[str]"  [no-any-return]
- homeassistant/components/eurotronic_cometblue/config_flow.py:45: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/ghost/config_flow.py:164: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/google_assistant_sdk/helpers.py:85: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/google_sheets/services.py:76: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/google_sheets/services.py:102: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/heos/media_player.py:513: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/heos/media_player.py:531: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/heos/media_player.py:537: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/heos/media_player.py:543: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/heos/media_player.py:549: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/heos/media_player.py:592: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/heos/media_player.py:598: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/heos/media_player.py:610: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/husqvarna_automower/entity.py:189: error: Returning Any from function declared to return "dict[int, Any] | None"  [no-any-return]
- homeassistant/components/hyperion/light.py:403: error: Returning Any from function declared to return "dict[str, Any] | None"  [no-any-return]
- homeassistant/components/indevolt/coordinator.py:113: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/iron_os/coordinator.py:125: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/lunatone/light.py:120: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/lunatone/light.py:156: error: Returning Any from function declared to return "int | None"  [no-any-return]
- homeassistant/components/lunatone/sensor.py:203: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/minecraft_server/api.py:95: error: Item "None" of "Any | None" has no attribute "timeout"  [union-attr]
- homeassistant/components/radarr/coordinator.py:120: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/radarr/coordinator.py:132: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/radarr/coordinator.py:151: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tedee/coordinator.py:94: error: Returning Any from function declared to return "dict[int, Any]"  [no-any-return]
- homeassistant/components/teslemetry/coordinator.py:138: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/teslemetry/coordinator.py:465: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/teslemetry/coordinator.py:649: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/teslemetry/coordinator.py:703: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/airgradient/config_flow.py:54: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/evohome/entity.py:42: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/evohome/entity.py:56: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/evohome/entity.py:131: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/freshr/coordinator.py:128: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/fyta/coordinator.py:74: error: Returning Any from function declared to return "dict[int, Any]"  [no-any-return]
- homeassistant/components/google_cloud/helpers.py:8: error: Module "google.cloud" has no attribute "texttospeech"  [attr-defined]
- homeassistant/components/google_cloud/helpers.py:74: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/google_cloud/helpers.py:98: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/google_cloud/helpers.py:184: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/google_cloud/stt.py:9: error: Module "google.cloud" has no attribute "speech_v1"  [attr-defined]
- homeassistant/components/home_connect/entity.py:121: error: Returning Any from function declared to return "str | int | float | bool | None"  [no-any-return]
- homeassistant/components/logbook/models.py:84: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/logbook/models.py:94: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/my_pv/coordinator.py:112: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/my_pv/coordinator.py:152: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/my_pv/coordinator.py:159: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/my_pv/coordinator.py:168: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/my_pv/coordinator.py:175: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/my_pv/coordinator.py:182: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/my_pv/coordinator.py:189: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/paperless_ngx/config_flow.py:134: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/rainforest_raven/coordinator.py:86: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/sonarr/coordinator.py:132: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/steamist/discovery.py:28: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/victron_gx/entity.py:142: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/victron_gx/update.py:97: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/aranet/config_flow.py:23: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/energyzero/coordinator.py:51: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/energyzero/coordinator.py:83: error: Returning Any from function declared to return "dict[Any, Any]"  [no-any-return]
- homeassistant/components/evohome/climate.py:207: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/evohome/climate.py:225: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/evohome/climate.py:242: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/evohome/climate.py:251: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/google_cloud/config_flow.py:7: error: Module "google.cloud" has no attribute "texttospeech"  [attr-defined]
- homeassistant/components/google_cloud/tts.py:9: error: Module "google.cloud" has no attribute "texttospeech"  [attr-defined]
- homeassistant/components/google_cloud/tts.py:179: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/google_cloud/tts.py:182: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/husqvarna_automower/lawn_mower.py:106: error: Returning Any from function declared to return "dict[int, Any] | None"  [no-any-return]
- homeassistant/components/husqvarna_automower/number.py:34: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/husqvarna_automower/sensor.py:99: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/husqvarna_automower/sensor.py:100: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/husqvarna_automower/sensor.py:119: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/husqvarna_automower/sensor.py:145: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/husqvarna_automower/sensor.py:147: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/husqvarna_automower/switch.py:108: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/husqvarna_automower/switch.py:163: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/components/husqvarna_automower/switch.py:216: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/components/lacrosse_view/config_flow.py:43: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/lamarzocco/switch.py:246: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/lamarzocco/update.py:86: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/lamarzocco/update.py:97: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/lamarzocco/update.py:112: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/madvr/config_flow.py:126: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/nobo_hub/config_flow.py:327: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/update.py:128: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/shelly/utils.py:230: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/shelly/utils.py:280: error: Returning Any from function declared to return "WebSocketResponse[Literal[True]]"  [no-any-return]
- homeassistant/components/shelly/utils.py:336: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/sma/sensor.py:912: error: Returning Any from function declared to return "str | int | float | None"  [no-any-return]
- homeassistant/components/tankerkoenig/config_flow.py:48: error: Returning Any from function declared to return "list[Any]"  [no-any-return]
- homeassistant/components/xbox/remote.py:125: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/elgato/coordinator.py:114: error: Returning Any from function declared to return "dict[int, Any]"  [no-any-return]
- homeassistant/components/hdfury/config_flow.py:134: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/jvc_projector/config_flow.py:125: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/kaco_rs485/coordinator.py:106: error: Returning Any from function declared to return "dict[int, Any]"  [no-any-return]
- homeassistant/components/openuv/__init__.py:55: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/radarr/config_flow.py:118: error: Returning Any from function declared to return "tuple[str, str, str] | None"  [no-any-return]
- homeassistant/components/surepetcare/coordinator.py:65: error: Returning Any from function declared to return "dict[int, Any]"  [no-any-return]
- homeassistant/components/zinvolt/config_flow.py:49: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/helpers/httpx_client.py:68: error: Class cannot subclass "AsyncClient" (has type "Any")  [misc]
- homeassistant/helpers/httpx_client.py:128: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/google_sheets/config_flow.py:61: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/helty_cloud/config_flow.py:43: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/husqvarna_automower/binary_sensor.py:36: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/components/lunatone/binary_sensor.py:109: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/notion/binary_sensor.py:142: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/components/peco/coordinator.py:109: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/ruuvi_gateway/bluetooth.py:21: error: Class cannot subclass "BaseHaRemoteScanner" (has type "Any")  [misc]
- homeassistant/components/switchbee/coordinator.py:107: error: Returning Any from function declared to return "Mapping[int, Any]"  [no-any-return]
- homeassistant/components/uptime_kuma/coordinator.py:88: error: Returning Any from function declared to return "dict[str | int, Any]"  [no-any-return]
- homeassistant/components/vitesy/coordinator.py:27: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/vitesy/coordinator.py:30: error: overload def [_P, _T_co] (func: def (*_P.args, **_P.kwargs) -> typing.Iterator[_T_co]) -> def (*_P.args, **_P.kwargs) -> contextlib._GeneratorContextManager[_T_co, None, None] of function contextlib.contextmanager is deprecated: Annotating the return type as `-> Iterator[Foo]` with `@contextmanager` is deprecated. Use `-> Generator[Foo]` instead.  [deprecated]
- homeassistant/components/vitesy/coordinator.py:79: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
- homeassistant/components/apple_tv/__init__.py:122: error: Class cannot subclass "DeviceListener" (has type "Any")  [misc]
- homeassistant/components/apple_tv/__init__.py:311: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/energyzero/sensor.py:190: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/flic_button/config_flow.py:94: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/home_connect/climate.py:197: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/home_connect/climate.py:207: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/home_connect/climate.py:217: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/lifx/light.py:247: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/lifx/light.py:253: error: Returning Any from function declared to return "int | None"  [no-any-return]
- homeassistant/components/lifx/light.py:259: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/netatmo/entity.py:118: error: Returning Any from function declared to return "tuple[str, str]"  [no-any-return]
- homeassistant/components/specialized_turbo/config_flow.py:359: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/specialized_turbo/config_flow.py:422: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/droplet/coordinator.py:83: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/ecosmart/coordinator.py:33: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/google_photos/coordinator.py:83: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/govee_ble/diagnostics.py:17: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/litterrobot/light.py:75: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/litterrobot/light.py:81: error: Returning Any from function declared to return "tuple[int, int, int] | None"  [no-any-return]
- homeassistant/components/litterrobot/switch.py:38: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/litterrobot/switch.py:80: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/litterrobot/update.py:76: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/litterrobot/update.py:82: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/midea/humidifier.py:104: error: Returning Any from function declared to return "list[str]"  [no-any-return]
- homeassistant/components/midea/light.py:119: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/midea/light.py:125: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/notion/sensor.py:93: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/notion/sensor.py:94: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/paperless_ngx/__init__.py:68: error: Unused "type: ignore" comment  [unused-ignore]
- homeassistant/components/switchbee/config_flow.py:48: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/zonneplan/select.py:78: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/actron_air/climate.py:112: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/actron_air/climate.py:118: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/actron_air/climate.py:146: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/actron_air/climate.py:152: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/actron_air/climate.py:158: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/actron_air/climate.py:221: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/actron_air/climate.py:227: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/actron_air/climate.py:242: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/actron_air/climate.py:248: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/actron_air/climate.py:254: error: Returning Any from function declared to return "float | None"  [no-any-return]
- homeassistant/components/firefly_iii/sensor.py:101: error: Returning Any from function declared to return "str | int | float | None"  [no-any-return]
- homeassistant/components/firefly_iii/sensor.py:150: error: Returning Any from function declared to return "str | int | float | None"  [no-any-return]
- homeassistant/components/midea/climate.py:469: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/midea/water_heater.py:398: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/miele/sensor.py:1074: error: Returning Any from function declared to return "str | int | float | None"  [no-any-return]
- homeassistant/components/miele/sensor.py:1084: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1192: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1200: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1206: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1207: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1208: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1239: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1245: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1246: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1247: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1281: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1282: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1283: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1284: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1285: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1286: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1297: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1305: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/sensor.py:1313: error: "int" has no attribute "name"  [attr-defined]
- homeassistant/components/miele/switch.py:59: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/switch.py:60: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/switch.py:75: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/switch.py:76: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/switch.py:190: error: Returning Any from function declared to return "bool | None"  [no-any-return]
- homeassistant/components/miele/vacuum.py:66: error: Unexpected keyword argument "missing_to_none" for "__init_subclass__" of "object"  [call-arg]
- homeassistant/components/miele/vacuum.py:66: error: Class cannot subclass "MieleEnum" (has type "Any")  [misc]
- homeassistant/components/miele/vacuum.py:141: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:142: error: "tuple[int, int]" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:143: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:144: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:145: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:146: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:147: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:148: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:149: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:150: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:151: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:152: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:153: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:154: error: "int" has no attribute "value"  [attr-defined]
- homeassistant/components/miele/vacuum.py:155: error: "int" 

... (truncated 1429 lines) ...

@JelleZijlstra JelleZijlstra self-assigned this Nov 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: deferred Issue or PR deferred until some precondition is fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants